<template>
    <div class="star-img">
        <div>
            <img :src="avatar"/>
        </div>
        <p class="name">{{item.cnm}}</p>
        <p class="desc">{{item.desc|fildesc}}</p>
    </div>
</template>

<script>
export default {
    props:{
        item:Object
    },
    computed:{
        avatar(){
            let sr=this.item.avatar;
            return sr.replace('w.h','80.112');
        }
    },
    filters:{
        fildesc(text){
            let str=text.replace(":","");
            return str;
        }
    },
}
</script>

<style lang="less" scoped>
.star-img{
    width: 80px;

    div{
        width: 80px;

        img{
            display: block;
            width: 100%;
            height: 112px;
        }
    }

    p{
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        text-align: center;
        font-size: 12px;
        line-height: 18px;
        color: #fff;

        &.desc{
            color: rgba(255,255,255,.6);
        }
    }
}
</style>